package com.one.service.impl;

import com.one.enums.RoleEnum;
import com.one.enums.SexEnum;
import com.one.enums.StatusEnum;
import com.one.mapper.CommonMapper;
import com.one.service.CommonService;
import com.one.dto.Result;
import org.springframework.stereotype.Service;

@Service
public class CommonServiceImpl implements CommonService {
    private final CommonMapper commonMapper;

    public CommonServiceImpl(CommonMapper commonMapper) {
        this.commonMapper = commonMapper;
    }
    @Override
    public Result getStatus() {
        return Result.ok().data(StatusEnum.getEnumList());
    }

    @Override
    public Result getSex() {
        return Result.ok().data(SexEnum.getEnumList());
    }

    @Override
    public Result getRole() {
        return Result.ok().data(RoleEnum.getEnumList());
    }
}
